home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Tidbits / Tidbits 01 à 100 / TidBITS#042_Compression.txt < prev    next >
Encoding:
Text File  |  1995-06-19  |  18.6 KB  |  402 lines  |  [TEXT/ttxt]

  1. TidBITS#42/Compression
  2. ======================
  3.  
  4.  Copyright 1990-1992 Adam & Tonya Engst. Non-profit, non-commercial
  5.    publications may reprint articles if full credit is given. Other
  6.    publications please contact us. We do not guarantee the accuracy
  7.    of articles. Publication, product, and company names may be
  8.    registered trademarks of their companies. Disk subscriptions and
  9.    back issues are available.
  10.  
  11.  For more information send electronic mail to info@tidbits.uucp or
  12.  Internet: ace@tidbits.uucp -- CIS: 72511,306 -- AOL: Adam Engst
  13.  TidBITS -- 9301 Avondale Rd. NE Q1096 -- Redmond, WA 98052 USA
  14.  -----------------------------------------------------------------
  15.  
  16. Topics:
  17.     Compression Wars
  18.     Compression Rankings
  19.     Efficiency Rankings
  20.     Expansion Ratings
  21.     Compactor
  22.     StuffIt
  23.     DiskDoubler
  24.     Compression Conclusions
  25.  
  26.  
  27. Compression Wars
  28. ----------------
  29.   by Ken Hancock -- kenh@hscfsas1.harvard.edu -- khancock on AOL
  30.  
  31.   With all the recent hubbub regarding the various file compressors,
  32.   I thought it was well past time for a review and comparison of the
  33.   leaders: StuffIt, Compactor (now Compact Pro), and DiskDoubler.
  34.  
  35.   Before I begin, let's lay down the foundation used for the timing
  36.   tests:
  37.  
  38.   All tests were done on a Macintosh SE/30 with 8 MB memory, running
  39.   6.0.7 under Finder on a Wren IV drive. The only INIT running was
  40.   Desktop Manager (no, I wasn't going to wait for my desktop to be
  41.   rebuilt). Three different tests were performed on each application
  42.   and each compression mode, each trying to reflect different real-
  43.   world situations:
  44.  
  45. * "Binaries" - a 1,857,129 byte folder containing four
  46.   applications: Microsoft Word, HyperCard, Compactor, and StuffIt
  47.   Deluxe 1.0.
  48.  
  49. * "Graphics" - a 1,868,118 byte folder containing eight PICT files
  50.   used for backdrops. Mostly scanned images.
  51.  
  52. * "Text" - a 227,521 byte folder containing 60 TEXT files of
  53.   varying lengths.
  54.  
  55.   I tested six different applications: StuffIt 1.5.1, StuffIt
  56.   Classic 1.6, StuffIt Deluxe 1.0, StuffIt Deluxe 2.0, Compactor
  57.   1.21, and DiskDoubler 3.1. In each case, the times were based on
  58.   the time to compress an entire folder from the respective
  59.   application in a one-step process. For DiskDoubler, this meant
  60.   using its "Combine" feature since DiskDoubler is most commonly
  61.   used to compress single files. Since DiskDoubler combines and then
  62.   compresses, only one compression mode is used throughout all the
  63.   files. For the DiskDoubler "Smallest" mode test, smaller files
  64.   might be possible by first compressing the folder and then
  65.   combining the folder. All the other applications compress on a
  66.   file-by-file basis.
  67.  
  68.   Please note that these tests do not take into account any
  69.   interface issues or shortcuts that one might use. In each case, I
  70.   only recorded the actual time spent by the Mac in compressing or
  71.   decompressing the file. You should also be aware that there are
  72.   more variables that were beyond the scope of these tests, such as
  73.   still more different file types and how the programs worked with
  74.   smaller files. Working on a single small database file, for
  75.   instance, might produce somewhat different results. There is
  76.   simply no way to test all the possibilities, sorry.
  77.  
  78.   So, who won? Good question. As with everything, it depends on the
  79.   game being played. I judged the applications on two criteria:
  80.  
  81. 1. Absolute compression: which program compressed the files the
  82.   most.
  83.  
  84. 2. Best Efficiency: which program yielded the best
  85.   compression/minute.
  86.  
  87.   In the case of a tie, the application that compressed the fastest
  88.   garnered the top spot. All compression percentages are carried out
  89.   to two decimal places since different applications
  90.   calculated/rounded the values differently. "Efficiency" was
  91.   calculated by taking the "% saved" and dividing by the number of
  92.   minutes it took to compress the folder. For those who wish to see
  93.   the gory details, take a look at the enclosed Excel spreadsheet.
  94.  
  95.   Since I tested four separate versions of StuffIt and a total of 12
  96.   different modes/versions altogether, I've summarized the results
  97.   below, with the following condition:
  98.  
  99.   All StuffIt Deluxe 1.0 trials have been removed as well as all
  100.   timings with StuffIt Deluxe/Classic "Better" mode. In almost all
  101.   of the trial modes, "Best Guess" provided identical compression to
  102.   "Better" mode, but at a faster speed. (One questions why the
  103.   "Better" mode is even included.)
  104.  
  105.   The results (a note for the less mathematically inclined - the
  106.   larger numbers are better):
  107.  
  108.  
  109. Compression Rankings
  110. --------------------
  111.  
  112.  Best Compression - Binaries        % saved    %/min efficiency
  113.  StuffIt Deluxe 2.0 "Best Guess"    42.3             7.11
  114.  Compactor                          41.94%          13.90
  115.  StuffIt Classic 1.6 "Best Guess"   41.94%           5.67
  116.  DiskDoubler 3.1 "Method B"         35.34%          11.91
  117.  
  118.  Best Compression - Graphics        % saved    %/min efficiency
  119.  Compactor                          55.66%          11.80
  120.  StuffIt Deluxe 2.0 "Best Guess"    55.10%           8.59
  121.  StuffIt Classic 1.6 "Best Guess"   54.33%           7.12
  122.  DiskDoubler 3.1 "Method B"         51.09%          19.52
  123.  
  124.  Best Compression - Text            % saved    %/min efficiency
  125.  Compactor                          53.98%          87.54
  126.  StuffIt Deluxe 2.0 "Best Guess"    52.59%          24.85
  127.  StuffIt Classic 1.6 "Best Guess"   52.15%          27.94
  128.  DiskDoubler 3.1 "Method A"         51.41%         140.21
  129.  
  130.  
  131. Efficiency Rankings
  132. -------------------
  133.  
  134.  Best Efficiency - Binaries     %/min efficiency   % saved
  135.  DiskDoubler 3.1 "Method A"         18.21           25.19%
  136.  StuffIt Deluxe 2.0 "Faster"        14.62           13.89%
  137.  Compactor                          13.90           41.94%
  138.  DiskDoubler 3.1 "Method B"         11.91           35.34%
  139.  
  140.  Best Efficiency - Graphics     %/min efficiency   % saved
  141.  DiskDoubler 3.1 "Method A"         39.15           47.63%
  142.  StuffIt Deluxe 2.0 "Faster"        34.95           33.20%
  143.  StuffIt Classic 1.6 "Fast"         28.34           49.13%
  144.  StuffIt 1.5.1 "Try both"           25.51           48.47%
  145.  
  146.  Best Efficiency - Text         %/min efficiency   % saved
  147.  DiskDoubler 3.1 "Method A"        140.21           51.41%
  148.  Compactor                          87.54           53.98%
  149.  DiskDoubler 3.1 "Method B"         83.22           48.54%
  150.  DiskDoubler 3.1 "Smallest"         71.74           51.41%
  151.  
  152.  
  153. Expansion Ratings
  154. -----------------
  155.   At least a few people out there want to decompress files for some
  156.   strange reason and might be interested in how fast the various
  157.   compression programs do this.  Myself, I always go fix a snack,
  158.   watch some Star Trek, read a book, or carry on intellectual
  159.   conversations while my Mac decompresses files.  I guarantee that
  160.   me method will give you the best results (i.e. you'll enjoy
  161.   yourself instead of sitting around watching progress bars).  But,
  162.   since I've so often been reminded that I'm probably not a good
  163.   indication of the real world, here we go...
  164.  
  165.   I did two decompression tests for each of five programs: Compact
  166.   Pro 1.30, DiskDoubler 3.1, StuffIt 1.5.1, StuffIt Classic 1.6, and
  167.   StuffIt Deluxe 2.0.  All tests, as before, were performed on a Mac
  168.   SE/30, System 6.0.7 running under Finder, and using the Desktop
  169.   Manager.  The first test was to decompress a StuffIt 1.5.1 archive
  170.   containing all the previously compressed files: Binaries,
  171.   Graphics, and Text Files.  The second test was to decompress one
  172.   file containing the same files in the application's native format. 
  173.   Compact Pro has only one format (simple, eh?).  For DiskDoubler,
  174.   this was a "combined" file compressed with Method A.  For StuffIt
  175.   1.5.1, this was a file compressed with "Try both."  For StuffIt
  176.   Classic and Deluxe, this was a file compressed with "Best Guess." 
  177.   I decided to use these formats because I thought they would be the
  178.   most commonly used in each case (I could be wrong) and since
  179.   decompression times will vary widely depending on %-saved,
  180.   original data type, etc.  (So use these numbers only as a rough
  181.   guideline!)
  182.  
  183.   Two figures are given for each application.  For the first test,
  184.   we have total time to decompress the 2,527,112 byte file (the
  185.   faster, the better) and a speed relative to StuffIt 1.5.1 (the
  186.   larger the number, the better).  For the second test, we have
  187.   total time to decompress the file and a kilobytes/minute
  188.   decompression speed (again, the larger the better).
  189.  
  190.  
  191. Time to decompress a StuffIt 1.5.1 archive:
  192.  
  193.                     Time       Normalized
  194.  Compact Pro        2:41         1.95
  195.  DiskDoubler        3:51         1.36
  196.  StuffIt Classic    5:07         1.02
  197.  StuffIt 1.5.1      5:14         1.00
  198.  StuffIt Deluxe     5:24         0.97
  199.  
  200.  
  201. Time to decompress a native format file:
  202.  
  203.                     Time        K/min
  204.  Compact Pro        3:26         732
  205.  DiskDoubler        2:23         635
  206.  StuffIt 1.5.1      5:14         472
  207.  StuffIt Classic    7:11         390
  208.  StuffIt Deluxe     7:33         365
  209.  
  210.  
  211. Question: "So, which one should I use?"
  212.  
  213. Answer: "It depends on what you want. Read on."
  214.  
  215.  
  216. Compactor
  217. ---------
  218.   Compactor, a relatively recent introduction into the compression
  219.   world from Bill Goodman, takes the simple approach: easy, fast,
  220.   and compact. In all of the trials, Compactor files were never more
  221.   than 1% larger than StuffIt Deluxe's "Better"/"Best Guess" modes,
  222.   but anywhere from 25% to 400% faster. Compactor is currently my
  223.   choice for daily BBS and Usenet uploads and downloads. Compactor
  224.   also featured the absolute fastest decompression times for both
  225.   StuffIt 1.5.1 files and for its own files. In addition, Compactor
  226.   creates the smallest self-extracting applications (about 13K
  227.   overhead), which is handy if the recipient doesn't have the same
  228.   program you use. It also works the way an application should under
  229.   MultiFinder and allows the foreground application to work quickly
  230.   while still managing to get its own work done. (Nice job, Bill!)
  231.   Now only if it had Finder-level compression...
  232.  
  233.   Of course, if you are up on the absolute latest and greatest, you
  234.   know that Bill Goodman just released a new version, Compact Pro
  235.   1.3 (he had to change the name because of a name conflict with
  236.   another product). The times and archive sizes were ever so
  237.   slightly longer and larger, most likely due to the removal of the
  238.   300 files per archive limit that Compactor had. I didn't change
  239.   either the results in the article or the spreadsheet because of
  240.   the minimal differences between Compactor and Compact Pro file
  241.   formats. Most Compact Pro archives can be extracted by Compactor
  242.   unless they take advantage of one of the new features, such as the
  243.   removal of that 300 files per archive limit I just mentioned.
  244.   Compact Pro boasts plenty of other features that should help
  245.   solidify its position as the shareware compression program of
  246.   choice. If you hold down the option key when double-clicking on an
  247.   archive, Compact Pro automatically extracts all the contents.
  248.   Similarly, double-clicking on filenames in the archive catalog
  249.   window extracts the files, as it should. For those on the
  250.   Internet, Compact Pro now supports Binhex 4 encoding and decoding,
  251.   though it can't decode binhexed files that have text before the
  252.   start of the binhex codes. Curious, and Bill is probably working
  253.   on that right now. Overall, though, Compact Pro is well worth the
  254.   $25 shareware fee.
  255.  
  256.     Bill Goodman
  257.     109 Davis Ave.
  258.     Brookline, MA  02146
  259.     71101,204 on CompuServe
  260.  
  261.  
  262. StuffIt
  263. -------
  264.   I've been a big fan of StuffIt ever since Raymond Lau released it
  265.   way back when. Before that, PackIt was the standard, and it didn't
  266.   take long before everyone noticed that StuffIt was faster and
  267.   better. Since then, StuffIt development and marketing has been
  268.   taken over by Aladdin Systems. The results: StuffIt Classic, the
  269.   new shareware version, and StuffIt Deluxe, the commercial version.
  270.   StuffIt Classic improves upon StuffIt 1.5.1 by offering better
  271.   compression modes, the ability to navigate through folders,
  272.   support for externals, and virus checking. StuffIt Deluxe goes
  273.   beyond StuffIt Classic by offering extensive scripting, more
  274.   compression methods, compression "optimizers," compression
  275.   "externals," and my favorite feature, "Magic Menu." Magic Menu not
  276.   only allows Finder-level compression, but also includes hooks for
  277.   popular mail programs so you can stuff & send files. StuffIt
  278.   Deluxe is my compressor of choice at work for the Magic Menu
  279.   feature alone. On the downside, StuffIt Deluxe is beginning to
  280.   suffer from feature-itis. It seems to me that five different
  281.   compression methods is more than needed, especially since "Best
  282.   Guess" and "Better" yield almost identical compression factors.
  283.  
  284.   While StuffIt certainly wins the features wars, it isn't always
  285.   the most efficient format, and one place where Compact Pro wins is
  286.   in the size of the self-extracting archives. Depending on what
  287.   mode you choose, StuffIt adds between 19K and 23K to the
  288.   compressed file to make it self-extracting. In contrast, Compact
  289.   Pro only adds about 13K, which can be a big difference when you
  290.   send files at slow modem speeds. StuffIt Deluxe and StuffIt
  291.   Classic also brought up the rear in terms of decompression speed,
  292.   which is something of a strike against them.
  293.  
  294.     Aladdin Systems -- 408-685-9175
  295.     Deer Park Center, Suite 23A-171
  296.     Aptos, CA 95003
  297.     Aladdin on America Online
  298.     aladdin@well.sf.ca.us
  299.  
  300.  
  301. DiskDoubler
  302. -----------
  303.   DiskDoubler was the biggest surprise for me, probably because I
  304.   was least familiar with it. When I ran the "Text" test on it, all
  305.   I could say was "Wow." No wonder Apple decided that a site-license
  306.   for it would be a good thing. DiskDoubler fills a different niche
  307.   than StuffIt and Compactor. DiskDoubler provides near-transparent
  308.   file compression in normal use. Compress a document or application
  309.   from the "DD" menu in the Finder. The document icon is then
  310.   replaced by a copy with a little "DD" in the corner (only if
  311.   DiskDoubler has been configured by Salient for that particular
  312.   application). Weeks later when you need the document, double-
  313.   click, and it (and its associated application, if that is
  314.   compressed as well) is decompressed and opened. Quit from the
  315.   application or close the document and DiskDoubler recompresses the
  316.   document, and if appropriate, the application. Slick!
  317.   Decompression wasn't quite as impressive as compression, but
  318.   DiskDoubler took second place by quite a large margin nonetheless.
  319.   The NuBus DoubleUp board (SE and SE/30 versions to follow) from
  320.   Sigma Designs, currently in beta test, will make DiskDoubler up to
  321.   ten times faster and may shrink the compressed files more as well.
  322.  
  323.   DiskDoubler has no provision for self-extracting archives because
  324.   it isn't trying to compete in the online compression battle
  325.   between StuffIt and Compact Pro. Instead, DiskDoubler includes a
  326.   freely distributable application and INIT, both of which can only
  327.   expand compressed files. They aren't all that small, at 82K for
  328.   the INIT and 96K for the application, but you only have to send
  329.   them to your intended recipient once. If you regularly send self-
  330.   extracting archives to the same person, sending DiskDoubler's free
  331.   utilities is probably more efficient.
  332.  
  333.   I have only two gripes about DiskDoubler. First, the progress
  334.   window is a little obtrusive. I'd prefer a small, relocatable
  335.   windoid. Luckily Salient has said they may include options for
  336.   either a smaller window or no window in future versions to make
  337.   DiskDoubler even more transparent. Salient also mentioned that
  338.   although the progress window is modal, it does allow background
  339.   tasks ample time. Second, there aren't enough icons included - the
  340.   perfect solution would be an application that allows you to add
  341.   icons from an application and put the "DD" in the corner - better
  342.   yet, do it on the fly! (Thanks to Tom Zeller for loaning me a copy
  343.   so I could review it - the only problem is I was so impressed that
  344.   now I'm going to have to go out and buy yet a third compression
  345.   program!)
  346.  
  347.     Salient -- 415-321-5375 -- 800-326-0092
  348.     124 University Ave.  Suite 103
  349.     Palo Alto, CA 94301
  350.     Salient on America Online and AppleLink
  351.     76516,1574 on CompuServe
  352.  
  353.  
  354. Compression Conclusions
  355. -----------------------
  356.   The common denominator remains the old StuffIt 1.5.1 format, since
  357.   all of the compression programs can expand 1.5.1 files (this is
  358.   why we included a StuffIt 1.5.1 file in the decompression tests).
  359.   Not surprisingly, StuffIt Classic and StuffIt Deluxe can also
  360.   create 1.5.1 archives, unlike the others. However, most of the
  361.   online services, including the Internet file servers, have adopted
  362.   a policy of allowing any format if a free decompressor is
  363.   available. America Online is the major holdout, since it prefers
  364.   uploads in StuffIt 1.5.1 format and only allows other formats if
  365.   the files are self-extracting archives.
  366.  
  367.   Yet another program will try its hand at the competition soon,
  368.   when Alysis Software releases SuperDisk!, which is designed to
  369.   compete with DiskDoubler and provide transparent compression and
  370.   expansion of files. However, SuperDisk! will also go after the
  371.   other programs by creating smaller archives in less time and by
  372.   including the ability to create self-extracting archives. It
  373.   should ship in a month or so. If that's not enough for you, a
  374.   shareware program recently appeared on the scene to compete with
  375.   DiskDoubler. AutoSqueeze from Dawson Dean transparently compresses
  376.   and expands files or folders (and the files in them) whose name
  377.   ends with the word "compressed." It's $20 shareware and works
  378.   quite well, though in our informal tests it isn't as fast as
  379.   DiskDoubler nor does it compress the files as much. A friend was
  380.   recently bemoaning the number of choices in the compression field.
  381.   "It all used to be so easy," he complained. "Everyone loved
  382.   StuffIt and thought Ray Lau was a god. Now we've got a ton of
  383.   formats to deal with and trade-offs wherever you look." There is
  384.   something to be said for simplicity, but we're unlikely to ever
  385.   see it again in the compression field.
  386.  
  387.   The bottom line? It's a toss-up. I'll be using all three - StuffIt
  388.   Deluxe for the Magic Menus and mail hooks (not to mention JPEG
  389.   compression for Photoshop documents!), Compact Pro for my
  390.   uploading and downloading, and DiskDoubler to compress all the
  391.   infrequently-used files on my hard disk (definitely cheaper than
  392.   buying another hard disk). And by the way, don't try these tests
  393.   at home - compressing files for eight hours with a stopwatch is
  394.   not in my "Top 10 Things To Do" list.
  395.  
  396.  
  397. ..
  398.  
  399.  This text is encoded in the setext format. Please send email to
  400.  <info@tidbits.uucp> or contact us at one of the above addresses
  401.  to learn how to get more information on the setext format.
  402.